package cn.kust.serviceinterestpoint.service.impl;

import cn.kust.serviceinterestpoint.entity.InterestInterest;
import cn.kust.serviceinterestpoint.mapper.InterestInterestMapper;
import cn.kust.serviceinterestpoint.service.InterestInterestService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author microTourism
 * @since 2022-07-28
 */
@Service
public class InterestInterestServiceImpl extends ServiceImpl<InterestInterestMapper, InterestInterest> implements InterestInterestService {

    @Override
    public List<InterestInterest> getAllInterestsByCity(String city) {
        return baseMapper.listAllInterestByCity(city);
    }

    @Override
    public List<String> findAllCities() {
        return baseMapper.listAllCities();
    }
}
